package org.whuims.pois.action.result;

import java.util.Date;

/**
 * Created by zhongwei on 2014/5/17.
 */
public class DataVo {
    long id;
    String title;
    String link;
    String abstext;
    String site;
    //TODO 坑爹的这里竟然只能用Date，不能用Timestamp，王八蛋
    Date time;
    long topic;
    Date crawlTime;
    boolean star = false;
    private String dType;
    private int negativeIndex;

    public DataVo() {
    }
    /***/
    public DataVo(long id, String title, String link, String abstext, String site, Date time, long topic, Date crawlTime, int negativeIndex) {
        this.id = id;
        this.title = title;
        this.link = link;
        this.abstext = abstext;
        this.site = site;
        this.time = time;
        this.topic = topic;
        this.crawlTime = crawlTime;
        this.negativeIndex = negativeIndex;
    }

    public DataVo(long id, String title, String link, String abstext, String site, Date time, long topic, Date crawlTime) {
        this.id = id;
        this.title = title;
        this.link = link;
        this.abstext = abstext;
        this.site = site;
        this.time = time;
        this.topic = topic;
        this.crawlTime = crawlTime;
        this.star = false;
    }

    public DataVo(long id, String title, String link, String abstext, String site, Date time, long topic, Date crawlTime, boolean star) {
        this.id = id;
        this.title = title;
        this.link = link;
        this.abstext = abstext;
        this.site = site;
        this.time = time;
        this.topic = topic;
        this.crawlTime = crawlTime;
        this.star = star;
    }

    public DataVo(long id, String title, String link, String abstext, String site, Date time, Date crawlTime) {
        this.id = id;
        this.title = title;
        this.link = link;
        this.abstext = abstext;
        this.site = site;
        this.time = time;
        this.crawlTime = crawlTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getAbstext() {
        return abstext;
    }

    public void setAbstext(String abstext) {
        this.abstext = abstext;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }


    public long getTopic() {
        return topic;
    }

    public void setTopic(long topic) {
        this.topic = topic;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getCrawlTime() {
        return crawlTime;
    }

    public void setCrawlTime(Date crawlTime) {
        this.crawlTime = crawlTime;
    }

    public boolean isStar() {
        return star;
    }

    public void setStar(boolean star) {
        this.star = star;
    }

    public int getNegativeIndex() {
        return negativeIndex;
    }

    public void setNegativeIndex(int negativeIndex) {
        this.negativeIndex = negativeIndex;
    }

    public String getdType() {
        return dType;
    }

    public void setdType(String dType) {
        this.dType = dType;
    }
}
